/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.customer;

/**
 *
 * @author jay
 */

import src.domain.customer.Incomesrc;
import java.util.List;
import java.util.Map;
import javax.faces.model.SelectItem;
import src.services.CRUEDService;

public class IncomesrcModel implements java.io.Serializable {
    
    private CRUEDService service;
    
    public IncomesrcModel() {
        
    service = new CRUEDService();
    }
    
    public List<Incomesrc> findAll(Map<String, String> filters) {
        return (List<Incomesrc>) service.findAll("Incomesrc", filters);
    }

     public List<SelectItem> listAll() {
        return service.listAll("Incomesrc", "incomesrcId", "sourceName");
    }
     
    public boolean saveData(Incomesrc data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Incomesrc data) {
        return service.deleteData(data);
    }
}
